package com.xls.commonlibrary.util;

import com.orhanobut.logger.Logger;

import java.util.Arrays;
import java.util.List;

import javax.annotation.Nonnull;

public class ListStringUtil {
    // 解决set顺序混乱的问题

    public static String list2String(@Nonnull List<String> list) {
        String ss = String.join(",", list);

        Logger.d("=======ListStringUtil======add========"+ss);
        return ss;
    }

    public static List<String> string2List(String string) {
        List<String> list = Arrays.asList(string.split(","));
        Logger.d("=======ListStringUtil========get======"+list.toString());
        return list;
    }


}
